package com.frank.practice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frank.practice.entity.SubjectMapping;
import com.frank.practice.api.vo.LabelSubjectCountVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2025/4/11
 * @description
 */
@Mapper
public interface SubjectMappingMapper extends BaseMapper<SubjectMapping> {


    /**
     * 根据categoryId和subjectType获取标签和对应的题目数量
     *
     * @param categoryId  分类id
     * @param subjectTypeList 题目类型
     * @return List<LabelSubjectCountVo>
     */
    List<LabelSubjectCountVo> getLabelSubjectCountList(@Param("categoryId") Long categoryId, @Param("subjectTypeList") List<Integer> subjectTypeList);
}